package com.api.manage.feign.product;

import com.api.manage.factory.LogFeignClientFallback;
import com.api.manage.pojo.product.SysCategoryBean;
import com.api.manage.pojo.system.SysBranchOfficeBean;
import com.api.manage.pojo.system.SysDepartmentBean;
import com.tem.common.tool.result.ResultUtil;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import static com.api.common.ApiConstants.ProductService;

@Service
@FeignClient(value = ProductService, fallbackFactory = LogFeignClientFallback.class)
public interface ProductClientService {
    @GetMapping("/product/sysCategory/getById/{id}")
    public ResultUtil<SysCategoryBean> getSysCategoryBeanById(@PathVariable("id") Long sysCategoryId);
}
